package 练习程序;

public class 温度转换 {
    public static void main(String[] args) {
        System.out.println("please input template:");
        java.util.Scanner s = new java.util.Scanner(System.in);
        int a = s.nextInt();
        System.out.println(exchange(a));

    }

    public static int exchange(int f) {
        int c = (f - 32) * 5 / 9;
        return c;


    }
}